import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Location from "@/components/headerLocation/Location"
import About from "@/components/home/About"
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/location',
      name: 'Location',
      component: Location
    },
    {
      path: '/about',
      name: 'About',
      component: About
    }, 
  ],
  scrollBehavior (to, from, savedPosition) {
    return { x: 0, y: 0 }
    }
})
